package com.woniuxy.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FixExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FixExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFixIdIsNull() {
            addCriterion("fix_id is null");
            return (Criteria) this;
        }

        public Criteria andFixIdIsNotNull() {
            addCriterion("fix_id is not null");
            return (Criteria) this;
        }

        public Criteria andFixIdEqualTo(Integer value) {
            addCriterion("fix_id =", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdNotEqualTo(Integer value) {
            addCriterion("fix_id <>", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdGreaterThan(Integer value) {
            addCriterion("fix_id >", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fix_id >=", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdLessThan(Integer value) {
            addCriterion("fix_id <", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdLessThanOrEqualTo(Integer value) {
            addCriterion("fix_id <=", value, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdIn(List<Integer> values) {
            addCriterion("fix_id in", values, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdNotIn(List<Integer> values) {
            addCriterion("fix_id not in", values, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdBetween(Integer value1, Integer value2) {
            addCriterion("fix_id between", value1, value2, "fixId");
            return (Criteria) this;
        }

        public Criteria andFixIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fix_id not between", value1, value2, "fixId");
            return (Criteria) this;
        }

        public Criteria andFaultIdIsNull() {
            addCriterion("fault_id is null");
            return (Criteria) this;
        }

        public Criteria andFaultIdIsNotNull() {
            addCriterion("fault_id is not null");
            return (Criteria) this;
        }

        public Criteria andFaultIdEqualTo(Integer value) {
            addCriterion("fault_id =", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdNotEqualTo(Integer value) {
            addCriterion("fault_id <>", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdGreaterThan(Integer value) {
            addCriterion("fault_id >", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fault_id >=", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdLessThan(Integer value) {
            addCriterion("fault_id <", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdLessThanOrEqualTo(Integer value) {
            addCriterion("fault_id <=", value, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdIn(List<Integer> values) {
            addCriterion("fault_id in", values, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdNotIn(List<Integer> values) {
            addCriterion("fault_id not in", values, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdBetween(Integer value1, Integer value2) {
            addCriterion("fault_id between", value1, value2, "faultId");
            return (Criteria) this;
        }

        public Criteria andFaultIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fault_id not between", value1, value2, "faultId");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeIsNull() {
            addCriterion("fix_start_time is null");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeIsNotNull() {
            addCriterion("fix_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeEqualTo(Date value) {
            addCriterion("fix_start_time =", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeNotEqualTo(Date value) {
            addCriterion("fix_start_time <>", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeGreaterThan(Date value) {
            addCriterion("fix_start_time >", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("fix_start_time >=", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeLessThan(Date value) {
            addCriterion("fix_start_time <", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("fix_start_time <=", value, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeIn(List<Date> values) {
            addCriterion("fix_start_time in", values, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeNotIn(List<Date> values) {
            addCriterion("fix_start_time not in", values, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeBetween(Date value1, Date value2) {
            addCriterion("fix_start_time between", value1, value2, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("fix_start_time not between", value1, value2, "fixStartTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeIsNull() {
            addCriterion("fix_end_time is null");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeIsNotNull() {
            addCriterion("fix_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeEqualTo(Date value) {
            addCriterion("fix_end_time =", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeNotEqualTo(Date value) {
            addCriterion("fix_end_time <>", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeGreaterThan(Date value) {
            addCriterion("fix_end_time >", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("fix_end_time >=", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeLessThan(Date value) {
            addCriterion("fix_end_time <", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("fix_end_time <=", value, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeIn(List<Date> values) {
            addCriterion("fix_end_time in", values, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeNotIn(List<Date> values) {
            addCriterion("fix_end_time not in", values, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeBetween(Date value1, Date value2) {
            addCriterion("fix_end_time between", value1, value2, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andFixEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("fix_end_time not between", value1, value2, "fixEndTime");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNull() {
            addCriterion("emp_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNotNull() {
            addCriterion("emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpIdEqualTo(Integer value) {
            addCriterion("emp_id =", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotEqualTo(Integer value) {
            addCriterion("emp_id <>", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThan(Integer value) {
            addCriterion("emp_id >", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_id >=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThan(Integer value) {
            addCriterion("emp_id <", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("emp_id <=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIn(List<Integer> values) {
            addCriterion("emp_id in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotIn(List<Integer> values) {
            addCriterion("emp_id not in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("emp_id between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_id not between", value1, value2, "empId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}